<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		city1 = "广州";
		city1 = "深圳";
		city2 = "汕头";
		city3 = "佛山";

		city = ["广州","汕头",'佛山'];

		user = ['学并思','男','18'];
		// user = {'username':'学并思','sex':'男','age':'18'};

		city[100] = "深圳";

		// alert(city[50]);

		// console.log(city[2][4]);///下标，索引，键


		// arr = [45,345,234,[435,345,34,[6576,67,6,77777],34,5],234];


		// alert(arr[3][3][3]);

		city = ["广州","汕头",'佛山'];
		console.log(city);

		for (var i = 0; i < city.length ; i++) {
			document.write("<a href=''>"+city[i]+"</a>");
		}

		for(var i in city){
			document.write("<a href=''>"+city[i]+"</a>");
		}


		1 [345,34,534,5,3445,345] 封装一个函数，实现把数组进行求和

		2 [56,4,6,465,77,3,453,5] 封装一个函数,找出最大值。

		3 [5,2,7,22,13,23] 封装一个函数,把奇数乘以2返回
			// [10,2,14,22,26,46];
		4 [435,32,2,34,23,42] 封装一个函数,把数组进行反转

		// [42,23,34,2,32,435]
	




	</script>
</head>
<body>
	
</body>
</html>